package cn.tianyigps.tianyigpsgatherchecker.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Created By yangxl
 * Date: 2018/6/13
 * Time: 10:25
 * Description:具体的需要校验的对象
 */
@Getter
@Setter
@ToString
public class RuleModel<T> {
    private String id;
    private String name;
    private String type;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date begin_date;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date end_date;
    private String begin_time;
    private String end_time;
    private T condition;
    private List<String> maps;
    private String update_time;

}
